import request from '@/utils/request'
// subsidy-scholarship
//   院系名称
export function getCollegeListInfo() {
    return request({
      url: '/finances/nationalScholarshipApplyController/getCollegeListInfo',
      method: 'get'
    })
  }

//   分配汇总
export function scholarshipAllocationSummary(query) {
    return request({
      url: '/finances/nationalScholarshipApplyController/allocationSummary',
      method: 'post',
      data: query
    })
  }

//   分配列表
export function scholarshipAllocationList(query) {
    return request({
      url: '/finances/nationalScholarshipApplyController/list',
      method: 'post',
      data: query
    })
  }
export function editScholarshipAllocation(yearStr, data) {
  return request({
    url: '/finances/nationalScholarshipApplyController?yearStr=' + yearStr,
    method: 'put',
    data: data
  })
}


// 获取金额
export function getScholarshipMoney(data) {
  return request({
    url: '/finances/nationalScholarshipController/getInfoByYearstr',
    method: 'get',
    params: data
  })
}



// 困难生
//  分配列表
export function poorStudentAllocationList(query) {
  return request({
    url: '/finances/diffCollegePlanController/list',
    method: 'get',
    params: query
  })
}

// 申请计划
export function poorStudentPlanRow(query) {
  return request({
    url: '/finances/diffCollegePlanController/applyPlanStatistics',
    method: 'get',
    params: query
  })
}

// 分配汇总
export function poorStudentAllocationTotal(query) {
  return request({
    url: '/finances/diffCollegePlanController/allocationSummaryStatistics',
    method: 'get',
    params: query
  })
}

// 剩余名额
export function poorStudentSy(query) {
  return request({
    url: '/finances/diffCollegePlanController/selectRemainingQuotaByYearstr',
    method: 'post',
    params: query
  })
}

// 学院已分配名额
export function collageAllocationed(query) {
  return request({
    url: '/finances/diffCollegePlanController/selectPersonNumByYearstrAndCollageId',
    method: 'post',
    params: query
  })
}

// 学院分配名额修改
export function editCollageAllocationed(query) {
  return request({
    url: '/finances/diffCollegePlanController/saveOrupdateCollPlan',
    method: 'post',
    data: query
  })
}


// 校园奖学金
// 根据年份统计奖学金的学院分配情况
export function getStatisSchScholarshipCollByYear(query) {
  return request({
    url: '/finances/schScholarshipCollTypeController/getStatisSchScholarshipCollByYear',
    method: 'post',
    params: query
  })
}
// 获取学院分配列表
export function getSchoolScholarshipAllocationList(query) {
  return request({
    url: '/finances/schScholarshipCollTypeController/getSchScholarshipCollDistributionList',
    method: 'get',
    params: query
  })
}

// 修改学院分配信息
export function editSchoolScholarshipAllocation(query) {
  return request({
    url: '/finances/schScholarshipCollTypeController/saveOrUpdateScholarshipCollType',
    method: 'post',
    data: query
  })
}
